package com.imooc.animation360;

import com.imooc.animation360.service.MyFloatService;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity implements OnClickListener{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		Button btn_startService = (Button) findViewById(R.id.btn_startService);
		btn_startService.setOnClickListener(this);
	}
	
	@Override
	public void onClick(View v) {
		Intent service = new Intent(this, MyFloatService.class);
		startService(service);
//		finish();
	}

}
